using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN PersonTypesEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: PersonTypesEntity</para>
	/// <para>Description: ClassPersonTypesEntity store data of table PersonTypes</para>
	///</summary>

	[Serializable]
	public partial class PersonTypesEntity{


		private bool _InternalChangedIsNullPersonTypeId=true;
		private bool _IsNullPersonTypeId=true;
		private bool _InternalChangedIsNullTypeName=true;
		private bool _IsNullTypeName=true;
		private bool _InternalChangedIsNullNote=true;
		private bool _IsNullNote=true;
		private bool _IsNullOldPersonTypeId=true;
		private int _PersonTypeId;
		private string _TypeName;
		private string _Note;
		private int _OldPersonTypeId;
		[XmlElement(ElementName = "IsNullPersonTypeId")]
		public bool IsNullPersonTypeId{
			get{return _IsNullPersonTypeId;}
			set{if(!_InternalChangedIsNullPersonTypeId)_IsNullPersonTypeId=value;}
		}
		[XmlElement(ElementName = "IsNullTypeName")]
		public bool IsNullTypeName{
			get{return _IsNullTypeName;}
			set{if(!_InternalChangedIsNullTypeName)_IsNullTypeName=value;}
		}
		[XmlElement(ElementName = "IsNullNote")]
		public bool IsNullNote{
			get{return _IsNullNote;}
			set{if(!_InternalChangedIsNullNote)_IsNullNote=value;}
		}
		[XmlElement(ElementName = "IsNullOldPersonTypeId")]
		public bool IsNullOldPersonTypeId{
			get{return _IsNullOldPersonTypeId;}
			set{_IsNullOldPersonTypeId=value;}
		}
		[XmlElement(ElementName = "PersonTypeId")]
		public int PersonTypeId{
			get{return _PersonTypeId;}
			set{
				_PersonTypeId=value;
				if(_PersonTypeId!=null){
					_IsNullPersonTypeId=false;
					_InternalChangedIsNullPersonTypeId=true;
				}
			}
		}
		[XmlElement(ElementName = "TypeName")]
		public string TypeName{
			get{return _TypeName;}
			set{
				_TypeName=value;
				if(_TypeName!=null){
					_IsNullTypeName=false;
					_InternalChangedIsNullTypeName=true;
				}
			}
		}
		[XmlElement(ElementName = "Note")]
		public string Note{
			get{return _Note;}
			set{
				_Note=value;
				if(_Note!=null){
					_IsNullNote=false;
					_InternalChangedIsNullNote=true;
				}
			}
		}
		[XmlElement(ElementName = "OldPersonTypeId")]
		public int OldPersonTypeId{
			get{return _OldPersonTypeId;}
			set{
				_OldPersonTypeId=value;
				IsNullOldPersonTypeId=false;
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END PersonTypesEntityBase*****************************************/
	/*****************************************************************************************************/
}

